package cn.byapps.attendance.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import core.excel.annotation.ExcelField;

@Entity
@Table(name = "_student")
public class Student implements Serializable {
	private static final long serialVersionUID = 1L;

	@ExcelField(title = "学号", type = 0)
	@Id
	@Column(name = "_id", length = 10)
	private String id;
	@Column(name = "_cellphone", length = 20)
	private String cellphone;
	@ExcelField(title = "姓名", type = 0)
	@Column(name = "_name", length = 20)
	private String name;
	@Column(name = "_dept", length = 20)
	private String dept;
	@Column(name = "_clazz", length = 20)
	private String clazz;
	@Column(name = "_password", length = 20)
	private String password;
	@Column(name = "_address", length = 100)
	private String address;
	@Column(name = "_dorm", length = 20)
	private String dorm;
	@Column(name = "_remark", length = 200)
	private String remarks;
	@Column(name = "_job", length = 20)
	private String job;
	@Column(name = "_relationship", length = 20)
	private String relationship;
	@Column(name = "_flag", length = 20)
	Boolean flag = Boolean.TRUE;

	@OneToOne(mappedBy = "student")
	private FavJob favJob;

	public Student() {
	}

	public FavJob getFavJob() {
		return favJob;
	}

	public void setFavJob(FavJob favJob) {
		this.favJob = favJob;
	}

	public Student(String id, String name) {
		this.id = id;
		this.name = name;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCellphone() {
		return cellphone;
	}

	public void setCellphone(String cellphone) {
		this.cellphone = cellphone;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDept() {
		return dept;
	}

	public void setDept(String dept) {
		this.dept = dept;
	}

	public String getClazz() {
		return clazz;
	}

	public void setClazz(String clazz) {
		this.clazz = clazz;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getDorm() {
		return dorm;
	}

	public void setDorm(String dorm) {
		this.dorm = dorm;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public String getJob() {
		return job;
	}

	public void setJob(String job) {
		this.job = job;
	}

	public String getRelationship() {
		return relationship;
	}

	public void setRelationship(String relationship) {
		this.relationship = relationship;
	}

	public Boolean getFlag() {
		return flag;
	}

	public void setFlag(Boolean flag) {
		this.flag = flag;
	}

}
